using System;
using System.Collections.Generic; 
using System.Linq;  
using System.Text;  
using System.Data.Linq.Mapping;
namespace MRSite.Entity  
{
     [Table(Name = "News")]
    public class News : Entity
    { 
		/// <summary>
		///
		/// </summary>
		[Column(Name = "id", IsPrimaryKey = true, CanBeNull = false, IsVersion = true)]
		public override int id{ get; set; } 

		/// <summary>
		///
		/// </summary>
		[Column(Name = "title")]
		public String title{ get; set; } 

		/// <summary>
		///
		/// </summary>
		[Column(Name = "cid")]
		public int cid{ get; set; } 

		/// <summary>
		///
		/// </summary>
		[Column(Name = "addtime")]
		public DateTime addtime{ get; set; } 

         	/// <summary>
		/// 修改时间
		/// </summary>
        [Column(Name = "edittime")]
        public DateTime edittime { get; set; } 
         
         
		/// <summary>
		///   图片
		/// </summary>
        [Column(Name = "imgurl")]
        public String imgurl { get; set; } 
         

		/// <summary>
		///
		/// </summary>
		[Column(Name = "contents")]
		public String contents{ get; set; }

        /// <summary>
        ///排序 数字越大越靠前
        /// </summary>
        [Column(Name = "sort_id")]
        public int sort_id { get; set; }

        /// <summary>
        /// 浏览次数
        /// </summary>
        [Column(Name = "hits")]
        public int hits { get; set; }

        /// <summary>
        /// 点赞
        /// </summary>
        [Column(Name = "loves")]
        public int loves { get; set; }

           /// <summary>
        /// 有效阅读量
        /// </summary>
        [Column(Name = "reads")]
        public int reads { get; set; }
         

          /// <summary>
        /// 贡献值
        /// </summary>
        [Column(Name = "point")]
        public int point { get; set; }

        /// <summary>
        /// 评论数量
        /// </summary>
        [Column(Name = "comments")]
        public int comments { get; set; }

        /// <summary>
        ///是否审核通过
        /// </summary>
        [Column(Name = "status")]
        public int status { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Column(Name = "seo_title")]
        public String seo_title { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Column(Name = "seo_keywords")]
        public String seo_keywords { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Column(Name = "seo_description")]
        public String seo_description { get; set; }

        /// <summary>
        ///内容摘要
        /// </summary>
        [Column(Name = "zhaiyao")]
        public String zhaiyao { get; set; }

        /// <summary>
        ///最新
        /// </summary>
        [Column(Name = "is_new")]
        public int is_new { get; set; }

        /// <summary>
        ///是否热卖
        /// </summary>
        [Column(Name = "is_hot")]
        public int is_hot { get; set; }

        /// <summary>
        ///是否可以评论
        /// </summary>
        [Column(Name = "is_msg")]
        public int is_msg { get; set; }

        /// <summary>
        ///是否推荐
        /// </summary>
        [Column(Name = "is_red")]
        public int is_red { get; set; }

        /// <summary>
        ///标签
        /// </summary>
        [Column(Name = "tags")]
        public String tags { get; set; }

        /// <summary>
        ///视频地址
        /// </summary>
        [Column(Name = "video_src")]
        public String video_src { get; set; }
         

	 } 
}    

